<!--{@page layout="frame"}-->
<!--{content head}-->
<link rel="stylesheet" href="<?php echo MONK::include_css('user/invite',$webSite.'/Frame/source/styles/user/setting.css',false,true); ?>">
<!--{/content}-->
<!--{content content}-->
<div class="page sheet sheet-active" id="page-member-settings" data-page-name="<?php echo $my['user_nickname']?>的设置" data-url="/user/a81e5af9f0bf4e85a9fa7adec3e24660/settings/" data-since="2013-03-15 05:08:49 UTC">
    <div class="page-inner">
        <h3><?php echo $my['user_nickname']?>的设置</h3>
        <form class="form" action="/members/a81e5af9f0bf4e85a9fa7adec3e24660/settings/" method="post" data-remote="true">
            <div class="form-item upload-avatar">
                <div class="avatar-wrapper">
                    <img class="avatar" src="/Frame/source/uploads/user/<?php echo $block_my['user_avatar']; ?>">
                    <div class="loading"></div>
                </div>
                <div class="link-upload" data-url="/members/a81e5af9f0bf4e85a9fa7adec3e24660/avatars/" style="position: relative; overflow: hidden; direction: ltr;">
                  <a id="btn-upload" href="javascript:;">选择新头像</a>
                <input type="file" title="添加附件" name="upload-file" tabindex="-1" style="position: absolute; right: 0px; top: 0px; font-family: Arial; font-size: 118px; margin: 0px; padding: 0px; cursor: pointer; opacity: 0;"></div>
                <p class="desc">你可以选择png/jpg图片(100*100)作为头像</p>
            </div>
            <div class="form-item">
                <label class="form-label" for="txt-email">邮箱</label>
                <div class="form-field">
                    <input type="text" name="email" id="txt-email" value="<?php echo $my['user_email']; ?>" data-validate="email" data-validate-msg="请输入一个有效的邮箱地址">
                </div>
            </div>
            <div class="form-item">
                <label class="form-label" for="txt-nickname">昵称</label>
                <div class="form-field">
                    <input type="text" name="nickname" id="txt-nickname" value="<?php echo $my['user_nickname']; ?>" data-validate="required;length:1,255" data-validate-msg="人在江湖飘，总得有名号;昵称最长255个字符">
                </div>
            </div>
            <!--
                <div class="form-item">
                    <label class="form-label" for="txt-mobile">手机</label>
                    <div class="form-field">
                        <input type="text" name="mobile" id="txt-mobile" value="<?php /*echo $my['user_mobile'];*/ ?>" data-validate="mobile" data-validate-msg="请输入一个有效的手机号">
                    </div>
                </div>
            -->
            <div class="form-item">
                <label class="form-label" for="txt-maxim">个性签名</label>
                <div class="form-field">
                    <input type="text" name="maxim" id="txt-maxim" value="<?php echo $my['user_maxim']; ?>" data-validate="length:0,100" data-validate-msg="个性签名最长100个字符">
                </div>
            </div>
            <div class="form-item">
                <label class="form-label" for="txt-old-password">现有密码</label>
                <div class="form-field">
                    <input type="password" id="txt-old-password" data-validate="length:6;custom" data-validate-msg="登录密码需要至少有6位;" data-blur-validate="false">
                  <p class="desc">不修改密码则不需要填写此项</p>
                </div>
            </div>
            <div class="form-item">
                <label class="form-label" for="txt-password">新密码</label>
                <div class="form-field">
                    <input type="password" id="txt-password" data-validate="length:6;custom" data-validate-msg="登录密码需要至少有6位;" data-blur-validate="false">
                      <p class="desc">修改密码请先输入现有密码，强烈建议密码同时包含字母、数字和标点符号。</p>
                </div>
            </div>
            <div class="form-buttons">
                <button class="btn" id="btn-save" data-disable-with="正在保存..." data-success-text="保存成功">保存</button>
                <a href="javascript:history.back()" class="btn btn-x">返回</a>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="<?php echo MONK::include_js('jquery-filedrop',$webSite.'/Frame/source/scripts/jquery-filedrop.js',false,true); ?>"></script>
<script type="text/javascript" src="<?php echo MONK::include_js('upload_avatar',$webSite.'/Frame/source/scripts/upload_avatar.js',false,true); ?>"></script>
<!--{/content}-->